package com.luban.fox.security01.controller;


import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping()
public class UserController {

    @PreAuthorize("hasAuthority('query_user1')")
    @RequestMapping("/getUser")
    public String info(){
        return "user info";
    }
}
